package com.room.search.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;
import javax.validation.constraints.*;

/**
 * A DTO for the {@link com.room.search.domain.CityList} entity.
 */
@ApiModel(description = "菜单栏")
public class CityListDTO implements Serializable {

    private Long id;

    /**
     * 菜单名
     */
    @Size(max = 15)
    @ApiModelProperty(value = "菜单名")
    private String locationId;

    @Size(max = 20)
    private String locationName;

    @Size(max = 10)
    private String countryName;

    @Size(max = 20)
    private String adm1Name;

    @Size(max = 20)
    private String adm2Name;

    @Size(max = 30)
    private String latitude;

    @Size(max = 30)
    private String longitude;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    public String getAdm1Name() {
        return adm1Name;
    }

    public void setAdm1Name(String adm1Name) {
        this.adm1Name = adm1Name;
    }

    public String getAdm2Name() {
        return adm2Name;
    }

    public void setAdm2Name(String adm2Name) {
        this.adm2Name = adm2Name;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CityListDTO)) {
            return false;
        }

        CityListDTO cityListDTO = (CityListDTO) o;
        if (this.id == null) {
            return false;
        }
        return Objects.equals(this.id, cityListDTO.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.id);
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "CityListDTO{" +
            "id=" + getId() +
            ", locationId='" + getLocationId() + "'" +
            ", locationName='" + getLocationName() + "'" +
            ", countryName='" + getCountryName() + "'" +
            ", adm1Name='" + getAdm1Name() + "'" +
            ", adm2Name='" + getAdm2Name() + "'" +
            ", latitude='" + getLatitude() + "'" +
            ", longitude='" + getLongitude() + "'" +
            "}";
    }
}
